{
	name:"HalfAngleLine",
	tool:"./paint_tool/lines/point-line.shape",
	onClick(pos,e,meta){
		let line = this.queryLines(pos)
		if(line){
			let meta = this.getLM(line,pos)
			this.step.push({meta,pos})

			this.hl(line,pos)
			if(this.step.length==2)
				this.onCommit()
		}else
		this.toast("请选择任意俩条线段")
	},
	onCommit(){
		let steps = this.step
		let line = Math.calcLineCrossPos(steps[0].meta,steps[1].meta)
		let as = steps.map(sp=>{
			let pos = sp.pos
			return Math.tan360(pos.y-line.y,pos.x-line.x)
		})
			line.a = Math.formatAngle(as[0] + as[1]) /2
		this.step = [line]
		this.commit(Action.PointLine,this.name)
	}
}